package com.gator.desig_mode.facade;

/**
 * @author 何章怀晓 hezhanghuaixiao
 * @version V1.0
 * @desc
 */
public class DVDPlayer {

  private static final DVDPlayer instance = new DVDPlayer();

  private DVDPlayer(){}

  public static DVDPlayer getInstance(){
    return instance;

  }

  public void open(){
    System.out.println("DVD打开");
  }
  public void play(){
    System.out.println("DVD播放");
  }
  public void close(){
    System.out.println("DVD关闭");
  }

}


class Computer{

  private static final Computer instance = new Computer();

  private Computer(){}

  public static Computer getInstance(){
    return instance;

  }

  public void open(){
    System.out.println("Computer打开");
  }
  public void play(){
    System.out.println("Computer播放");
  }
  public void close(){
    System.out.println("Computer关闭");
  }

}
